package ch07.dao.impl;

import ch07.dao.AbstrctComputer;

/**
 * @author 茜茜
 * @date 2024-11-26 10:57
 */
public class ComputerDivision implements AbstrctComputer {
    @Override
    public int getComputer(double num1, double num2) {
        if (num2 == 0) {
            throw new IllegalArgumentException("除数不能为零");
        }
        return (int) (num1/num2);
    }
}
